# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-nptyping
_pyname=nptyping
pkgver=2.2.0
pkgrel=0
pkgdesc="Type hints for Numpy"
url="https://github.com/ramonhagenaars/nptyping"
arch="noarch"
license="MIT"
depends="python3 py3-numpy"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-typeguard py3-beartype py3-mypy py3-wheel"
source="$_pyname-$pkgver.tar.gz::https://github.com/ramonhagenaars/nptyping/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# disable tests which require network or pyright (python wrapper for the type
	# checker implemented in js, which just downloads it using npx)
	pytest \
		--ignore tests/test_wheel.py \
		--ignore tests/test_package_info.py \
		--ignore tests/test_pyright.py

}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
3c29689994ca87418614e55811b66d03087d127b9e620c2dc3407e3e3ff984cdecd789b0dbd955db460f865a34941f061a7496362ef9944351f59a0e4c3ef483  nptyping-2.2.0.tar.gz
"
